<!DOCTYPE html>
<html xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:utils="http://java.sun.com/jsf/composite/utils"
	xmlns:sec="http://www.springframework.org/security/tags"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<link href="resources/styles/main.css" rel="stylesheet" type="text/css" />
</h:head>

<h:body>
	<f:view locale="#{language.localeCode}" />
	<div id="container">
		<div id="header">
			<ui:insert name="header">
				<ui:include src="/header.xhtml">
					<ui:param name="title" value="#{universitario.title}" />
				</ui:include>
			</ui:insert>
		</div>

		<div id="content">
			<ui:insert name="content">
				<f:ajax>
					<h:panelGrid columns="6" cellpadding="10" cellspacing="100"
						styleClass="centered">
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton image="/resources/img/system-users-3.png"
								action="#{universitario.doAction('employee')}" />
							<h:outputText value="#{msg.employee}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton image="/resources/img/dialog-password.png"
								action="#{universitario.doAction('changepassword')}" />
							<h:outputText value="#{msg.changePassword}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton image="/resources/img/emblem-office.png"
								action="#{universitario.doAction('faculty')}" />
							<h:outputText value="#{msg.faculty}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton
								image="/resources/img/accessories-dictionary.png"
								action="#{universitario.doAction('plan')}" />
							<h:outputText value="#{msg.plan}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton image="/resources/img/applications-other-2.png"
								action="#{universitario.doAction('chair')}" />
							<h:outputText value="#{msg.chair}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton
								image="/resources/img/accessories-text-editor-8.png"
								action="#{universitario.doAction('marks')}" />
							<h:outputText value="#{msg.marks}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton image="/resources/img/accessories-clock.png"
								action="#{universitario.doAction('schedule')}" />
							<h:outputText value="#{msg.schedule}" />
						</h:panelGrid>
						<h:panelGrid columns="1" cellpadding="10" rendered="#{request.isUserInRole('ROLE_ADMIN')}">
							<h:commandButton
								image="/resources/img/internet-web-browser-4.png"
								action="#{universitario.doAction('admin')}" />
							<h:outputText value="#{msg.adminTools}" />
						</h:panelGrid>

						<h:panelGrid columns="1" cellpadding="10">
							<h:commandButton
								image="/resources/img/applications-engineering-2.png"
								action="#{universitario.doAction('group')}" />
							<h:outputText value="#{msg.group}" />
						</h:panelGrid>

					</h:panelGrid>
				</f:ajax>
			</ui:insert>
		</div>

		<div id="footer">
			<ui:insert name="footer">
				<ui:include src="/footer.xhtml" />
			</ui:insert>
		</div>
	</div>
</h:body>
</html>